/*
 * Copyright 2024 Harness, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.main {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 4% !important;

  .titleContainer {
    width: 72.2%;
    margin-bottom: var(--spacing-medium) !important;
    align-self: flex-start;
    padding-left: calc((100% - 72.2%) / 2);

    h2 {
      font-size: 24px !important;
    }

    p {
      font-size: 16px !important;
      color: #383946;
    }
  }

  .cardMain {
    width: 72.2% !important;
    margin-bottom: 30px !important;
  }

  .cardTitle {
    font-size: 16px !important;
  }
}

.subContainers {
  margin: var(--spacing-xlarge) 0 !important;
  margin-bottom: 0px !important;
}

.formDivider {
  height: 2px !important;
  border-top: 1px solid var(--grey-200) !important;
}

.formTitleContainer {
  padding: var(--spacing-medium) var(--spacing-large) !important;
  margin: var(--spacing-medium) !important;
  border: 1px solid var(--grey-200);
  border-radius: 5px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.formContainer {
  border: 1px solid var(--grey-200);
  border-radius: 5px;
  padding: var(--spacing-medium) var(--spacing-large) !important;
  margin: var(--spacing-medium) !important;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
  border-top: none;
}

.formOuterContainer {
  padding: var(--spacing-medium) 0 !important;
  padding-bottom: 0px !important;
  margin: var(--spacing-medium) !important;

  button {
    margin-bottom: none;
  }
}

.gitspaceNameContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-medium);
  padding: var(--spacing-small) 0;
  width: 100%;
}

.leftSection {
  display: flex;
  align-items: start;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-items: center;
  margin-right: var(--spacing-small) !important;
}

.textSection {
  display: flex;
  flex-direction: column;
  gap: 3px !important;
}

.suggestedName {
  color: #0066ff !important;
  cursor: pointer;
  text-decoration: underline;
  width: fit-content;
  margin: 0 !important;
  padding: 0 !important;
}

.inputFieldContainer {
  :global {
    input.bp3-input {
      background: #f3f3fa !important;
      color: #6b6d85 !important;
      width: 100% !important;
      height: 45px !important;
      font-size: var(--font-size) !important;
      padding-left: 20px !important;
      line-height: 20px !important;
    }

    input.bp3-input:hover {
      background: transparent !important;
    }
  }
}

.customBreadcumbStyles {
  [class*='Layout--horizontal']:last-child > span[class*='bp3-icon'] {
    display: none !important;
  }
}
